
<section class="dux-layout-page">
    <div class="am-g am-g-collapse">
        <div class="am-u-md-8 am-u-sm-centered">
            <form class="am-form dux-form" action="{url()}" method="post"  data-dux="form-bind" data-advanced="false" data-callback="login">
                <div class="am-input-group">
                    <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span>
                    <input type="text" class="am-form-field" placeholder="{$nameTip}" name="username">
                </div>
                <div class="am-input-group">
                    <span class="am-input-group-label"><i class="am-icon-lock am-icon-fw"></i></span>
                    <input type="password" class="am-form-field" placeholder="登录密码" name="password">
                </div>
                <div class="am-checkbox">
                    <label>
                        <input type="checkbox" name="remember" value="1"> 一个月内免登录
                    </label>
                </div>
                <button class="am-btn am-btn-primary am-btn-block" type="submit">登录</button>
                <br>
                <div class="am-g">
                    <div class="am-u-sm-6 am-text-left">
                        <a href="{url('member/Register/forgot')}"><i class="am-icon-lock"></i> 找回密码</a>
                    </div>
                    <div class="am-u-sm-6 am-text-right">
                        <a href="{url('member/Register/index')}"><i class="am-icon-mobile"></i> 快速注册</a>
                    </div>
                </div>
            </form>
        </div>
    </div>

</section>
<script>
    Do('base', function () {
        window.login = function (msg, url) {
            window.location.href = url;
        }
    });
</script>